package com.dreamthen.service.impl;

import com.dreamthen.dao.IUserDao;
import com.dreamthen.entity.User;
import com.dreamthen.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author zengms
 * @Date 2023-10-29 09:07:47
 **/
@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private IUserDao iUserDao;

    @Override
    public User getUser(String id,Integer age) throws Exception {
        return iUserDao.getUser(id);
    }

    @Override
    public void delUser(String id){
        iUserDao.delUser(id);
    }

    @Override
    public List<User> query() {
        return iUserDao.query();
    }

    @Override
    public void updateUpdate(User user) {

    }


}
